-
Notifications
You must be signed in to change notification settings - Fork 8
New regression in python #69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
+547
−0
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
88f017f to
ad67038
Compare
2eefde8 to
9130a2e
Compare
hugtalbot
reviewed
Jan 22, 2025
hugtalbot
reviewed
Jan 22, 2025
9130a2e to
5d2e4b8
Compare
…and return false instead of having numpy error
…e class name. Rename internal variable to be more explicit on the type of object
Contributor
Author
|
New edits:
Add check and send error if MechanicalObject size is not the same between ref and current simulation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a new version of Regression using SofaPython3. Feel free to improve it.
TODO:
Style based on .regression-test file but the last argument is the number of keyframe to test:
for example:
demos/mydemo.py 4000 1e-3 1 100100 step will be tested with a threshold of 1e-3.
key frame will be: [0 40 80 ... 4000]*dt so 101 values.
Right now, at each key frame, full distance between the ref dofs and simulated dofs is computer.
totalError = sum(fullDist) accumulated over all key frames.
errorByDos = sum(fullDist)/nbrDofs accumulated over all key frames.
Computation is done using numpy array. Maybe better metrics could be used.
example of output: